import service from '.'

const reserveApi = {
    //查询所有
    search(params) {
        return service.get(
            '/reserve',
            {params}
        ).then(response=>response.data)
    },
    //添加预约信息
    add(reserve) {
        return service.post(
            '/reserve',
            reserve
        ).then(response=>response.data)
    },
    //修改预约信息
    edit(reserve) {
        return service.put(
            '/reserve',
            reserve
        ).then(response=>response.data)
    },
    editStatus(reserve) {
        return service.put(
            '/reserve/editStatus',
            reserve
        ).then(response=>response.data)
    },
    batchSign(reservelist) {
        return service.put(
            '/reserve/editbatchSign',
            reservelist
        ).then(response=>response.data)
    }
}

export default reserveApi